package com.ddd.domain.user.dto;

import com.ddd.infrastructure.utils.JacksonUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
//@Builder  不要使用@Builder 因为继承会报错
public class UserOrganizationDto {

    private Integer id;  //主键
    private  String userId;//用户的编号
    private  String organizationId; //公司机构的编号

    @Override
    public String toString() {
        return JacksonUtil.toJson(this);
    }
}
